import request from '@/utils/request'

export function listZone(query) {
  return request({
    url: '/wms/zone/list',
    method: 'get',
    params: query
  })
}

export function getZone(id) {
  return request({
    url: '/wms/zone/' + id,
    method: 'get'
  })
}

export function addZone(data) {
  return request({
    url: '/wms/zone',
    method: 'post',
    data: data
  })
}

export function updateZone(data) {
  return request({
    url: '/wms/zone',
    method: 'put',
    data: data
  })
}

export function delZone(id) {
  return request({
    url: '/wms/zone/' + id,
    method: 'delete'
  })
}

